package com.songjg.demo.controller;
import com.songjg.demo.enums.ResultCode;
import com.songjg.demo.interfaces.AutoIdempotent;
import com.songjg.demo.utils.ResponseResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: song.jingen
 * @create: 2019/7/18 14:55
 **/
@RestController
public class HelloController {

    @AutoIdempotent
    @RequestMapping(value = "hello", method = RequestMethod.GET)
    public ResponseResult test(){
        return new ResponseResult(ResultCode.NOAUTH.getCode(),ResultCode.NOAUTH.getMsg());
    }
}
